package com.anysoft.me.utils;

/**
 * Created by lty on 2017/12/3.
 */

public class CommonUtil {

    private static long lastClickTime;
    /**
     * 防止暴力点击
     *
     * @return
     */
    public static boolean isFastDoubleClick() {
        long time = System.currentTimeMillis();
        if (time - lastClickTime < 1000) {
            return true;
        }
        lastClickTime = time;
        return false;
    }

}
